package com.heima.search.service;

import com.heima.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.model.search.vos.SearchArticleVo;
import com.heima.search.dto.ApAssociateWordsDto;
import com.heima.search.pojos.ApAssociateWords;

import java.io.IOException;
import java.util.List;

public interface ArticleSearchService {

    /**
     * ES文章分页搜索
     */
    ResponseResult<List<SearchArticleVo>> search(UserSearchDto userSearchDto) throws IOException;

    ResponseResult<List<ApAssociateWords>> associativeWords(ApAssociateWordsDto dto);
}
